package com.fishing.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class FlexiPage<T> {
	private Integer pageNum;
	private Integer pageSize;
	private Integer page;
	private Integer rp;
	private Long total;
	private Map<String,Object> jsonParams;   //其他返回结果
	private List<T> rows = new ArrayList<T>();
	
	public FlexiPage(PageInfo<T> pageInfo) {
		this.pageNum = pageInfo.getPageNum();
		this.pageSize = pageInfo.getPageSize();
		this.page = pageInfo.getPageNum();
		this.rp = pageInfo.getPageSize();
		this.total = pageInfo.getTotal();
		this.rows = pageInfo.getList();
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getRp() {
		return rp;
	}

	public void setRp(Integer rp) {
		this.rp = rp;
	}

	public Map<String, Object> getJsonParams() {
		return jsonParams;
	}

	public void setJsonParams(Map<String, Object> jsonParams) {
		this.jsonParams = jsonParams;
	}

	

}
